package com.hhh.demo.sx.controller;

import com.hhh.demo.sx.util.SessionUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @author lenovo
 * @create 2022/1/2 10:15
 */
@Controller
@RequestMapping("/logout")
public class LogoutController {
    @RequestMapping
    public String Logout(){
        SessionUtil.removeCurrentUser();
        return "login";
    }
}
